<template>
  <div>
    home {{store.state.appStore.count}}
    <button type="button" @click="increment">increment</button>
    <van-button type="primary" @click="increment">vant increment</van-button>
  </div>
</template>
<script setup>
  import {useStore} from 'vuex'
  import {onMounted} from 'vue'
  const store = useStore();
  const increment = () =>{
    store.dispatch('addCount',10)
  }
</script>
<style></style>
